<div>
	<div class="panel panel-primary ">
	   <div class="panel-heading p0 ">	
	      	<!-- 面包屑导航 -->
	       	<ol class="breadcrumb m0 nav-style">
				<li><a href="/#"><span class="glyphicon glyphicon-folder-open" aria-hidden="true"></span> &nbsp;监狱结构管理</a></li>
				<li class="active">修改监狱结构</li>
			</ol>
	   </div>
		<div class=" panel-body">
			<form class="form-horizontal" >
				<div class="form-group ">
				   
				    <!-- 从后台请求上层结构数据 -->
				    <label for="inputPassword3" class="col-xs-2 control-label">部门名称</label>
				    <div class="col-xs-2">
				      	<select id="testselect" ng-model="x" class="form-control" ng-change="select(x)" >
				      		<option  ng-repeat="data in firstStruct" value={{data.id}}>{{data.name}}</option>
				      	</select>
				    </div>
				</div>
			</form>
	  		<div class="form-group ">
				<table class="table table-condensed table-striped table-bordered">
				 	<thead>
						<tr>
							<th>结构名称</th>
							<th>备注</th>
							<th>操作</th>
						</tr>
					</thead>
					<tbody>
						<tr  ng-repeat="data in data" >
							<td id={{$index+1}}><input class="date-update"  type="text" disabled="disabled" value="{{data.name}}"></td>
							<td><input class="date-update" type="text" disabled="disabled" value="{{data.remark}}"></td>
							<td><a href="" ng-click="update($index,data.id,data.superId)">修改</a>
								<button ng-click="submitInfo(data.id,$index+1)" class="btn btn-xs btn-primary">删除</button>
							</td>
						</tr>
					</tbody>
				</table>
		</div>
	</div>
	
</div>

<!-- 删除模态框 -->
<div class="modal fade " id="myModal">
  <div class="modal-dialog" style="width: 300px;"> 
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4 class="modal-title">是否删除</h4>
      </div>
      <div class="modal-body">	
      	<span id="idNumber" ></span>
        <p>确定删除?&hellip;</p>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
        <button type="button" ng-click="delete()" class="btn btn-primary">确认</button>
      </div>
    </div><!-- /.modal-content -->
  </div><!-- /.modal-dialog -->
</div><!-- /.modal


<!-- 失败模态框 -->
<div class="modal fade " id="badmodal">
  <div class="modal-dialog" style="width: 300px;"> 
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4 class="modal-title">失败</h4>
      </div>
      <div class="modal-body">	
      	<span id="idNumber" ></span>
        <p>操作失败</p>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">确认</button>
        
      </div>
    </div><!-- /.modal-content -->
  </div><!-- /.modal-dialog -->
</div><!-- /.modal-->
